package com.woody.aggregate.saas.api;


import com.woody.aggregate.ShopIdQueryDTO;
import com.woody.aggregate.saas.dto.AddOrUpdateSaasShopConfigDTO;
import com.woody.aggregate.saas.vo.SaasShopConfigVO;
import com.woody.aggregate.saas.vo.SaasShopIndustryVO;
import com.woody.base.model.Response;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.validation.Valid;

public interface SaasShopConfigApi {

    @PostMapping("/saasShopConfig/add")
    @ResponseBody
    @ApiOperation(value = "新增或修改")
    Response<Long> addOrUpdate(@RequestBody @Valid AddOrUpdateSaasShopConfigDTO addOrUpdateSaasShopConfigDTO);

    @PostMapping("/saasShopConfig/getByShopId")
    @ResponseBody
    @ApiOperation(value = "根据id查询商圈配置")
    Response<SaasShopConfigVO> getByShopId(@RequestBody @Validated ShopIdQueryDTO shopIdQueryDTO);

}





